<template>
  <div>
    <el-card shadow="never" class="mb20">
      <office-form @search="handleSearch" ref="officeForm" />
    </el-card>
    <el-card shadow="never">
      <office-table ref="officeTable" />
    </el-card>
  </div>
</template>

<script>
import OfficeTable from './OfficeTable'
import OfficeForm from './OfficeForm'

export default {
  components: {
    OfficeTable,
    OfficeForm
  },
  methods: {
    handleSearch(obj) {
      this.$refs.officeTable.handleGetList(obj)
    }
  }
}
</script>
